//
//  OneControllerCell04.m
//  PosApp
//
//  Created by 刘萍 on 2018/8/31.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "OneControllerCell04.h"
#import "StartView.h"

@implementation OneControllerCell04

- (void)setModel:(CellModel *)model {
    [self.OneCellYHImage sd_setImageWithURL:[NSURL URLWithString:model.bank_icon] placeholderImage:[UIImage imageNamed:@"MainZWImage"]];
    self.OneCellYHLabel.text = [NSString stringWithFormat:@"%@",model.bank_name];
    self.OneCellPresonNumb.text = [NSString stringWithFormat:@"%@",model.bank_people];
    self.OneCellLable01.text = [NSString stringWithFormat:@"%@",model.bank_spot[0]];
    self.OneCellLable02.text = [NSString stringWithFormat:@"%@",model.bank_spot[1]];
    self.OneCellJLNumb.text = [NSString stringWithFormat:@"%@",model.bank_cash];
    
}

- (void)CreateOneControllerCell04{
    self.OneCellSQBtn.layer.cornerRadius =self.OneCellSQBtn.bounds.size.height/2;
    self.OneCellSQBtn.layer.borderWidth = 1;
    self.OneCellSQBtn.layer.borderColor = [UIColor colorWithRed:255/255.0 green:28/255.0 blue:96/255.0 alpha:1].CGColor;
    
    StartView *StartV = [[StartView alloc] initWithFrame:CGRectMake(0, 0, self.OneCellStartView.bounds.size.width, self.OneCellStartView.bounds.size.width/5)];
    StartV.center = CGPointMake(self.OneCellStartView.bounds.size.width/2, self.OneCellStartView.bounds.size.height/2);
    StartV.starBGColor = [UIColor colorWithWhite:0.85 alpha:1];
    StartV.starColor = [UIColor orangeColor];
    StartV.score = 8;
    [self.OneCellStartView addSubview:StartV];
}
- (IBAction)ClickOnBtnOfOneControllerCell04:(id)sender {
    [self.delegate ClickOnBtnOfCellToBankControllerWithCellID:self.tag];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
